<nav class="main-header navbar navbar-expand navbar-white navbar-light">
    <!-- Left navbar links -->
    <ul class="navbar-nav">
        <li class="nav-item">
            <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
        </li>
        <li class="nav-item">
            <span class="nav-link change-frame" title="切换后台模式，iframe和单页"   role="button">
                <i class="fas fa-dice"></i>
            </span>
        </li>
      <!--  <li class="nav-item d-none d-sm-inline-block">
            <a href="/static/adminlte/index3.html" class="nav-link">Home</a>
        </li>
        <li class="nav-item d-none d-sm-inline-block">
            <a href="#" class="nav-link">Contact</a>
        </li>-->
    </ul>

    <!-- Right navbar links -->
    <ul class="navbar-nav ml-auto">
        <li class="nav-item">
            <span class="nav-link" title="检测更新" onclick="check_update()"  role="button">
            <i class="fas fa-cloud-download-alt"></i>
            </span>
        </li>
        <li class="nav-item">
            <a class="nav-link" title="商城首页" href="<{:url('/mall/home/index')}>" target="_blank" role="button">
                <i class="fas fa-home"></i>
            </a>
        </li>

        <li class="nav-item">
            <span class="nav-link" title="刷新" onclick="location.reload()"  role="button">
               <i class="fas fa-sync-alt"></i>
            </span>
        </li>



        <!-- Navbar Search -->
        <!--<li class="nav-item">
            <a class="nav-link" data-widget="navbar-search" href="#" role="button">
                <i class="fas fa-search"></i>
            </a>
            <div class="navbar-search-block">
                <form class="form-inline">
                    <div class="input-group input-group-sm">
                        <input class="form-control form-control-navbar" type="search" placeholder="Search" aria-label="Search">
                        <div class="input-group-append">
                            <button class="btn btn-navbar" type="submit">
                                <i class="fas fa-search"></i>
                            </button>
                            <button class="btn btn-navbar" type="button" data-widget="navbar-search">
                                <i class="fas fa-times"></i>
                            </button>
                        </div>
                    </div>
                </form>
            </div>
        </li>-->


        <!-- Messages Dropdown Menu -->
       <!-- <li class="nav-item dropdown">
            <a class="nav-link" data-toggle="dropdown" href="#">
                <i class="far fa-comments"></i>
                <span class="badge badge-danger navbar-badge">3</span>
            </a>
            <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
                <a href="#" class="dropdown-item">
                    &lt;!&ndash; Message Start &ndash;&gt;
                    <div class="media">
                        <img src="/static/adminlte/img/user-d.jpg" alt="User Avatar" class="img-size-50 mr-3 img-circle">
                        <div class="media-body">
                            <h3 class="dropdown-item-title">
                                Brad Diesel
                                <span class="float-right text-sm text-danger"><i class="fas fa-star"></i></span>
                            </h3>
                            <p class="text-sm">Call me whenever you can...</p>
                            <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
                        </div>
                    </div>
                    &lt;!&ndash; Message End &ndash;&gt;
                </a>
                <div class="dropdown-divider"></div>
                <a href="#" class="dropdown-item">
                    &lt;!&ndash; Message Start &ndash;&gt;
                    <div class="media">
                        <img src="/static/adminlte/img/user-d.jpg" alt="User Avatar" class="img-size-50 img-circle mr-3">
                        <div class="media-body">
                            <h3 class="dropdown-item-title">
                                John Pierce
                                <span class="float-right text-sm text-muted"><i class="fas fa-star"></i></span>
                            </h3>
                            <p class="text-sm">I got your message bro</p>
                            <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
                        </div>
                    </div>
                    &lt;!&ndash; Message End &ndash;&gt;
                </a>
                <div class="dropdown-divider"></div>
                <a href="#" class="dropdown-item">
                    &lt;!&ndash; Message Start &ndash;&gt;
                    <div class="media">
                        <img src="/static/adminlte/img/user-d.jpg" alt="User Avatar" class="img-size-50 img-circle mr-3">
                        <div class="media-body">
                            <h3 class="dropdown-item-title">
                                Nora Silvester
                                <span class="float-right text-sm text-warning"><i class="fas fa-star"></i></span>
                            </h3>
                            <p class="text-sm">The subject goes here</p>
                            <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
                        </div>
                    </div>
                    &lt;!&ndash; Message End &ndash;&gt;
                </a>
                <div class="dropdown-divider"></div>
                <a href="#" class="dropdown-item dropdown-footer">See All Messages</a>
            </div>
        </li>-->
        <!-- Notifications Dropdown Menu -->
        <li class="nav-item dropdown admin-msg-count-box">
            <a class="nav-link" data-toggle="dropdown" href="#">
                <i class="far fa-bell"></i>
                <span class="badge badge-danger navbar-badge total-count"></span>
            </a>
            <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right ">
                <span class="dropdown-item dropdown-header"><span class="total-count">0</span> 未读消息</span>
                <!--<div class="dropdown-divider"></div>
                <a href="#" class="dropdown-item">
                    <i class="fas fa-envelope mr-2"></i> 4 new messages
                    <span class="float-right text-muted text-sm">3 mins</span>
                </a>-->

                <div class="msg-list">

                </div>

                <div class="dropdown-divider"></div>
                <a href="<{:url('/admin/index/msg')}>" class="dropdown-item dropdown-footer">查看所有消息</a>
            </div>
        </li>
        <li class="nav-item">
            <a class="nav-link" data-widget="fullscreen" href="#" role="button">
                <i class="fas fa-expand-arrows-alt"></i>
            </a>
        </li>
        <li class="nav-item logout" title="退出">
            <a class="nav-link" data-widget="control-sidebar" data-slide="true" href="#" role="button">
                <i class="fas fa-power-off"></i>
            </a>
        </li>
    </ul>
</nav>